{extends file="get_usermod:layouts/main/layout.html"} {block name="content"} {load_language_text section="cookie_consent_panel"} {load_language_text section="module_center_module" name="mcm"}
{if $content.activeTab =='purposes'}
{/if}

- {$txt.label_purpose_status}
{foreach from=$content.configuration key=$label item=$value}
- {$txt.$label}
  {foreach from=$content.languages item=$lang} {assign var="langCode" value=$lang.code}
  {if $value.$langCode|count_characters > 100} {$value.$langCode} {else} {/if}
  {/foreach}
{/foreach}

{for $categoryId=1 to 5}
- {$txt.label_category} {$categoryId}
  {foreach from=$content.languages item=$lang}
  {$txt.label_category_title} {assign var="titleIndex" value="label_cpc_category_0{$categoryId}_text_{$lang.code}"}
  {$txt.label_category_description} {assign var="descIndex" value="label_cpc_category_0{$categoryId}_desc_{$lang.code}"} {$content.$descIndex}
  {/foreach}
{/for}

#### {$txt.label_purpose_modal_title_create}

{$txt.label_category}
{$txt.label_purpose_status}
{foreach from=$content.languages item=$lang}
{$txt.label_purpose_title}
{$txt.label_purpose_description}
{/foreach}
{$txt.error_message_missing_title}
{foreach from=$content.purposes item=$purpose}

#### {$txt.label_purpose_modal_title_edit}

{$txt.label_category}
{$txt.label_purpose_status}
status() == true}checked="checked"{else}{/if} />
{foreach from=$content.languages item=$lang}
{$txt.label_purpose_title}
{$txt.label_purpose_description} {$purpose->description($lang.id)}
{/foreach}

#### {$txt.label_cpc_delete_modal_title}

{$txt.label_cpc_delete_modal_content}

{/foreach}

#### {$txt.integration_your_code_header}

{/block} {block name="bottom_save_bar"} {if $smarty.get.activetab} {assign var="activetab" value=$smarty.get.activetab} {else} {assign var="activetab" value="general"} {/if} {if $activetab !="purposes"} {load_language_text section="admin_buttons" name="admin_buttons"} {/if} {/block}